﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmOpcion.aspx.cs" Inherits="Crosland.Automotriz.Web.Seguridad.wFrmOpcion" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxHtmlEditor.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxHtmlEditor" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxSpellChecker.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxSpellChecker" tagprefix="dx" %>
<asp:Content ID="cMain" ContentPlaceHolderID="cphMain" runat="server">
<script type="text/javascript">
    function soloLetras(e) {
        key = e.keyCode || e.which;
        tecla = String.fromCharCode(key).toLowerCase();
        letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
        especiales = [46];
        tecla_especial = false
        for (var i in especiales) {
            if (key == especiales[i]) {
                tecla_especial = true;
                break;
            }
        }

        if (letras.indexOf(tecla) == -1 && !tecla_especial) {
            return false;
        }
    }
</script>

<script type="text/javascript">
    function caracteresEspeciales(e) {
        key = e.keyCode || e.which;
        tecla = String.fromCharCode(key).toLowerCase();
        letras = " áéíóúabcdefghijklmnñopqrstuvwxyz1234567890";
        especiales = [46,47,126];
        tecla_especial = false
        for (var i in especiales) {
            if (key == especiales[i]) {
                tecla_especial = true;
                break;
            }
        }

        if (letras.indexOf(tecla) == -1 && !tecla_especial) {
            return false;
        }
    }
</script>

<script type="text/javascript">
    function soloLetrasNumeros(e) {
        key = e.keyCode || e.which;
        tecla = String.fromCharCode(key).toLowerCase();
        letras = " áéíóúabcdefghijklmnñopqrstuvwxyz1234567890";
        especiales = [46];
        tecla_especial = false
        for (var i in especiales) {
            if (key == especiales[i]) {
                tecla_especial = true;
                break;
            }
        }

        if (letras.indexOf(tecla) == -1 && !tecla_especial) {
            return false;
        }
    }
</script>
  
  <script type="text/javascript">


      function pageLoad() {

          var control = document.getElementById('ctl00_cphMain_hfIndicador');
          cambiarImagenHeader();

          if (control.value == 'S') {
              $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

              control.value = 'N';
          }


      }

                

                
               

</script>
  <script type="text/javascript">
    // <![CDATA[

      function ShowEliminar() {
          popupEliminar.Show();

      }
      function ShowSeleccionarOpcion() {
          popupmsj.Show();

      }

      function ShowOK() {
          popupOK.Show();
      }

      function ShowModificar() {
          popupModificar.Show();
       }

       function ShowVacios() {
           popupVacios.Show();
       }

       function ShowDescripcion() {
           popupDescripcion.Show();
       }
       function ShowPopupEliminarGrupoOpcion() {
           PopupEliminarGrupoOpcion.Show();
       }
      
    // ]]> 
    </script>

 <div class="main-header" style="width:100%">
    <div class="main-titulo">Adm. Opciones</div>
        
 </div>    
 <asp:UpdatePanel runat="server">
 <ContentTemplate>
 

    
 

 <div class="content-form"> 
<table width="100%">
 <tr>
 <td width="105">
 
     <dx:ASPxButton ID="btnNuevoV2" runat="server" Text="Nuevo" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" onclick="btnNuevoV2_Click" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
         Width="100px">
         <Image Url="~/Images/bt_new_button.gif">
         </Image>
     </dx:ASPxButton>
 
 
 </td>
 <td width="105">
     <dx:ASPxButton ID="btnGrabarv2" runat="server" Text="Grabar" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" onclick="btnGrabarv2_Click" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
         Width="100px">
         <Image Url="~/Images/save_16.gif">
         </Image>
     </dx:ASPxButton>
 
 
 </td>
 <td width="105">
 
     <dx:ASPxButton ID="btnEliminarv2" runat="server" Text="Eliminar" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" onclick="btnEliminarv2_Click" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
         Width="100px">
         <Image Url="~/Images/delete.png">
         </Image>
     </dx:ASPxButton>
 
 
 
 
 </td>
 <td>
 
 
     <dx:ASPxButton ID="btnSalirv2" runat="server" Text="Salir" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
         onclick="btnSalirv2_Click" Width="100px">
         <Image Url="~/Images/logout.png">
         </Image>
     </dx:ASPxButton>
 
 
 </td>
 
 </tr>
 
 
    <tr>
        <td colspan="4">
            <hr />
        </td>
    </tr>
 
 
 </table>
     <asp:Panel ID="pnlMensaje" runat="server" CssClass="mensaje-form">
         <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
     </asp:Panel>

   <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
     <table width="100%">
     <tr>
     
     <td valign="top" height="5">
         &nbsp;</td>

     <td valign="top" height="5">
         &nbsp;</td>

     <td valign="top" height="5">




         &nbsp;</td>
     </tr>
     
     
         <tr>
             <td style="width:30%;" valign="top">
                 <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                     CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                     CssPostfix="Office2010Blue" EnableDefaultAppearance="False" Font-Bold="True" 
                     GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                     HeaderText="Seleccione opción" 
                     SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" View="GroupBox" 
                     Width="200px">
                     <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="10px" />
                     <HeaderStyle>
                     <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="3px" />
                     </HeaderStyle>
                     <PanelCollection>
                         <dx:PanelContent ID="PanelContent4" runat="server" 
                             SupportsDisabledAttribute="True">
                             <div class="listado-tree">
                                 <asp:TreeView ID="tvOpciones" runat="server" 
                                     onselectednodechanged="tvOpciones_SelectedNodeChanged" ShowCheckBoxes="All">
                                 </asp:TreeView>
                             </div>
                         </dx:PanelContent>
                     </PanelCollection>
                 </dx:ASPxRoundPanel>
             </td>
             <td style="width:30%;" valign="top">
                 <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" 
                     CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                     CssPostfix="Office2010Blue" EnableDefaultAppearance="False" Font-Bold="True" 
                     GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                     HeaderText="Agregar nueva opción" 
                     SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" View="GroupBox" 
                     Width="350px">
                     <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="10px" />
                     <HeaderStyle>
                     <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="3px" />
                     </HeaderStyle>
                     <PanelCollection>
                         <dx:PanelContent ID="PanelContent10" runat="server" 
                             SupportsDisabledAttribute="True">
                             <table border="0" cellpadding="3" cellspacing="0" width="100%">
                                 <tr>
                                     <td class="tb-label">
                                         Codigo opción</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <asp:Label ID="txtCodigo" runat="server" Font-Bold="True" Font-Size="14pt" 
                                             ForeColor="#CC0000"></asp:Label>
                                         <asp:HiddenField ID="hfIdPadre" runat="server" />
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Nombre opción</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxTextBox ID="txtNombre" runat="server" Height="30px" 
                                             onkeypress="return soloLetrasNumeros(event)" Width="300px">
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxTextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Objetivo</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxMemo ID="txtObjetivo" runat="server" Height="71px" Width="300px">
                                             <ValidationSettings ErrorText="Valor inválido">
                                                 <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                             </ValidationSettings>
                                         </dx:ASPxMemo>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td style="padding-top:10px">
                                         <dx:ASPxButton ID="btnDescripcion" runat="server" AutoPostBack="False" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                             Text="Agregar descripción" Width="170px">
                                             <ClientSideEvents Click="function(s, e) {
	popupDescripcion.Show();
}" />
                                             <Image Url="~/Images/landscape.gif">
                                             </Image>
                                         </dx:ASPxButton>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Tipo</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxComboBox ID="ddlTipo" runat="server" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Height="30px" SelectedIndex="0" Spacing="0" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                             <Items>
                                                 <dx:ListEditItem Selected="True" Text="Seleccione" />
                                                 <dx:ListEditItem Text="WebForm" Value="W" />
                                                 <dx:ListEditItem Text="Reporte" Value="R" />
                                             </Items>
                                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                             </LoadingPanelImage>
                                             <LoadingPanelStyle ImageSpacing="5px">
                                             </LoadingPanelStyle>
                                             <ButtonStyle Width="13px">
                                             </ButtonStyle>
                                             <Paddings PaddingLeft="5px" />
                                             <ValidationSettings>
                                                 <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                             </ValidationSettings>
                                         </dx:ASPxComboBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Dirección de la opción</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxTextBox ID="txtUrl" runat="server" Height="30px" 
                                             onkeypress="return caracteresEspeciales(event)" Width="300px">
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxTextBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Orden dentro del grupo.</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxSpinEdit ID="spinNroOrden" runat="server" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Height="30px" MaxValue="30" MinValue="1" Number="1" 
                                             Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                             <SpinButtons HorizontalSpacing="0">
                                             </SpinButtons>
                                             <ClientSideEvents Validation="function(s, e) {if(e.value&lt;=0){e.isValid=false;}}" />
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxSpinEdit>
                                         <dx:ASPxLabel ID="Label1" runat="server">
                                         </dx:ASPxLabel>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Estado</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxComboBox ID="ddlEstado" runat="server" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Height="30px" SelectedIndex="0" Spacing="0" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                             <Items>
                                                 <dx:ListEditItem Selected="True" Text="Activo" Value="A" />
                                                 <dx:ListEditItem Text="Inactivo" Value="I" />
                                             </Items>
                                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                             </LoadingPanelImage>
                                             <LoadingPanelStyle ImageSpacing="5px">
                                             </LoadingPanelStyle>
                                             <ButtonStyle Width="13px">
                                             </ButtonStyle>
                                             <Paddings PaddingLeft="5px" />
                                             <ValidationSettings>
                                                 <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                             </ValidationSettings>
                                         </dx:ASPxComboBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Area</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxComboBox ID="cboArea" runat="server" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                             </LoadingPanelImage>
                                             <LoadingPanelStyle ImageSpacing="5px">
                                             </LoadingPanelStyle>
                                             <ButtonStyle Width="13px">
                                             </ButtonStyle>
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxComboBox>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td class="tb-label">
                                         Opción padre</td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <dx:ASPxComboBox ID="cboOpcionPadre" runat="server" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains" 
                                             Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                             </LoadingPanelImage>
                                             <LoadingPanelStyle ImageSpacing="5px">
                                             </LoadingPanelStyle>
                                             <ButtonStyle Width="13px">
                                             </ButtonStyle>
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxComboBox>
                                     </td>
                                 </tr>
                             </table>
                         </dx:PanelContent>
                     </PanelCollection>
                 </dx:ASPxRoundPanel>
             </td>
             <td style="width:40%;" valign="top">
                 <dx:ASPxRoundPanel ID="RPAccesoUsuario" runat="server" 
                     CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                     CssPostfix="Office2010Blue" EnableDefaultAppearance="False" Font-Bold="True" 
                     GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                     HeaderText="Accesos de grupo de la opción" Height="406px" 
                     SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" View="GroupBox" 
                     Width="100%">
                     <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="10px" />
                     <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="10px" />
                     <HeaderStyle>
                     <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="3px" />
                     <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="3px" />
                     </HeaderStyle>
                     <PanelCollection>
                         <dx:PanelContent ID="PanelContent11" runat="server" 
                             SupportsDisabledAttribute="True">
                             <table>
                                 <tr>
                                     <td>
                                         <dx:ASPxButton ID="btnAgregarGrupo" runat="server" AutoPostBack="False" 
                                             ClientEnabled="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Agregar" 
                                             Width="100px">
                                             <ClientSideEvents Click="function(s, e) {
	PopupAgregarGrupo.Show();
}" />
                                             <Image Url="~/Images/add2.png">
                                             </Image>
                                         </dx:ASPxButton>
                                     </td>
                                     <td>
                                         <dx:ASPxButton ID="btnEliminarRelacionOpcion" runat="server" 
                                             ClientEnabled="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" OnClick="btnEliminarRelacionOpcion_Click" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Eliminar" 
                                             Width="100px">
                                             <Image Url="~/Images/delete.png">
                                             </Image>
                                         </dx:ASPxButton>
                                     </td>
                                 </tr>
                             </table>
                             <table style="width:100%;">
                                 <tr>
                                     <td>
                                         <dx:ASPxGridView ID="gvrOpcionGrupo" runat="server" AutoGenerateColumns="False" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" EnableCallBacks="False" KeyFieldName="nombre" 
                                             OnAfterPerformCallback="gvrOpcionGrupo_AfterPerformCallback" 
                                             OnFocusedRowChanged="gvrOpcionGrupo_FocusedRowChanged" 
                                             OnPageIndexChanged="gvrOpcionGrupo_PageIndexChanged" Width="100%">
                                             <Columns>
                                                 <dx:GridViewCommandColumn Caption="Marcar" ShowSelectCheckbox="True" 
                                                     VisibleIndex="2">
                                                 </dx:GridViewCommandColumn>
                                                 <dx:GridViewDataTextColumn Caption="Nombre" FieldName="nombre" VisibleIndex="0">
                                                     <PropertiesTextEdit>
                                                         <ValidationSettings ErrorText="Valor inválido">
                                                             <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                         </ValidationSettings>
                                                     </PropertiesTextEdit>
                                                 </dx:GridViewDataTextColumn>
                                                 <dx:GridViewDataTextColumn Caption="Descripción" FieldName="descripcion" 
                                                     VisibleIndex="1">
                                                     <PropertiesTextEdit>
                                                         <ValidationSettings ErrorText="Valor inválido">
                                                             <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                         </ValidationSettings>
                                                     </PropertiesTextEdit>
                                                 </dx:GridViewDataTextColumn>
                                                 <dx:GridViewDataTextColumn FieldName="id" Visible="False" VisibleIndex="4">
                                                     <PropertiesTextEdit>
                                                         <ValidationSettings ErrorText="Valor inválido">
                                                             <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                         </ValidationSettings>
                                                     </PropertiesTextEdit>
                                                 </dx:GridViewDataTextColumn>
                                                 <dx:GridViewDataTextColumn Caption="Opción" VisibleIndex="3">
                                                     <DataItemTemplate>
                                                         <dx:ASPxHyperLink ID="hplUsuariosAsociados" runat="server" Cursor="pointer" 
                                                             Text="Ver usuarios">
                                                             <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
	PopupUsuarioAsosciados.Show();
}" />
                                                         </dx:ASPxHyperLink>
                                                     </DataItemTemplate>
                                                 </dx:GridViewDataTextColumn>
                                             </Columns>
                                             <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                 ProcessFocusedRowChangedOnServer="True" />
                                             <SettingsBehavior AllowFocusedRow="True" />
                                             <SettingsPager PageSize="20">
                                             </SettingsPager>
                                             <SettingsLoadingPanel Text="Cargando&amp;hellip;" />
                                             <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                 <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                 </LoadingPanelOnStatusBar>
                                                 <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                 </LoadingPanel>
                                             </Images>
                                             <ImagesFilterControl>
                                                 <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                 </LoadingPanel>
                                             </ImagesFilterControl>
                                             <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                 CssPostfix="Office2010Blue">
                                                 <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                 </Header>
                                                 <LoadingPanel ImageSpacing="5px">
                                                 </LoadingPanel>
                                             </Styles>
                                             <StylesPager>
                                                 <PageNumber ForeColor="#3E4846">
                                                 </PageNumber>
                                                 <Summary ForeColor="#1E395B">
                                                 </Summary>
                                             </StylesPager>
                                             <StylesEditors ButtonEditCellSpacing="0">
                                                 <ProgressBar Height="21px">
                                                 </ProgressBar>
                                             </StylesEditors>
                                         </dx:ASPxGridView>
                                     </td>
                                 </tr>
                             </table>
                         </dx:PanelContent>
                     </PanelCollection>
                 </dx:ASPxRoundPanel>
             </td>
         </tr>
     
     
     </table>

         
   

           
        
         

        
                   
      
     
 </div>
 <div class="modal-dialog" runat="server" id="divDescripcion" style="display:none; width:750px;">
         <div class="popup-header">
             <div class="popup-title" runat="server" id="divDescripcionMove">
                 Descripción de la opción
             
             <div class="content-message">
                    Por favor ingrse la descripción de la opción y presione Aceptar"
             </div>        
             <div style="margin-top:10px" ></div>
             <cc1:Editor ID="eDescripcion" runat="server" Height="300" />  
             <div style="width:200px; text-align:center; margin:auto; margin-top:10px">
                <img src="Images/btnaceptar.png" alt="Aceptar" onclick="cerrarDescripcion()" style="cursor:pointer" />
             </div>
         </div>
  </div>
  </div>

 <dx:ASPxPopupControl ID="popupOK" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupOK" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel5" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent5" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                            Se grabó la opción correctamente !</td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                        <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton8" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupOK.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupEliminar" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupEliminar" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                            Se eliminó correctamente !</td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        
                        </table>
                        <table align="center">
                            <tr>
                        <td>
                            <dx:ASPxButton ID="btnAceptar" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupEliminar.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                            </td>
                        
                        </tr>
                        </table>

                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupConfirmar" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupConfirmar" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent3" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                        ¿Estas seguro de eliminar la opción?</td>
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                         <tr>
                        
                        <td align="center">
                        
                            <dx:ASPxButton ID="btnEliminarOk" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px" OnClick="btnEliminarOk_Click">
                                <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
	e.processOnServer = true;
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        
                        </td>
                       
                        <td align="center">
                        
                            <dx:ASPxButton ID="btnCancelar" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar" 
                                Width="40px">
                                <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                                <Image Url="~/Images/cancel.gif">
                                </Image>
                            </dx:ASPxButton>
                            </td>
                        
                        </tr>
                        
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
     <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupmsj" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent6" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                        <dx:ASPxLabel ID="lblmsj" runat="server">
                            </dx:ASPxLabel>
                            </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                        <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton9" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupModificar" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupModificar" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel7" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent7" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                         Se actualizo correctamente !</td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        
                        </table>
                        <table align = "center">
                         <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton10" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupModificar.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupVacios" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupVacios" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                         Rellene los campos vacios !</td>
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                           <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupVacios.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>





<dx:ASPxPopupControl ID="PopupEliminarGrupoOpcion" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupEliminarGrupoOpcion" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             Width="300px" EnableHotTrack="False">
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl9" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent9" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                            ¿Estas seguro de eliminar el grupo de la opción?</td>
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                         <tr>
                        
                        <td align="center">
                        
                            <dx:ASPxButton ID="btnEliminaOpcionGrupo" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px" OnClick="btnEliminaOpcionGrupo_Click">
                                <ClientSideEvents Click="function(s, e) {
	PopupEliminarGrupoOpcion.Hide();
	e.processOnServer = true;
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        
                        </td>
                       
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton3" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar" 
                                Width="40px" AutoPostBack="False">
                                <ClientSideEvents Click="function(s, e) {
	PopupEliminarGrupoOpcion.Hide();
}" />
                                <Image Url="~/Images/cancel.gif">
                                </Image>
                            </dx:ASPxButton>
                            </td>
                        
                        </tr>
                        
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>




        <dx:ASPxPopupControl ID="popupDescripcion" runat="server" AllowDragging="True" 
            ClientInstanceName="popupDescripcion" CloseAction="CloseButton" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
            EnableViewState="False" HeaderText="Mensaje" Modal="True" 
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
            </LoadingPanelImage>
            <HeaderStyle>
            <Paddings PaddingLeft="7px" />
            </HeaderStyle>
            <LoadingPanelStyle ImageSpacing="5px">
            </LoadingPanelStyle>
            <ContentCollection>
                <dx:PopupControlContentControl ID="PopupControlContentControl7" runat="server" 
                    SupportsDisabledAttribute="True">
                    <br />
                    <dx:ASPxPanel ID="ASPxPanel8" runat="server" DefaultButton="btCreate">
                        <PanelCollection>
                            <dx:PanelContent ID="PanelContent8" runat="server">
                                <table align="center">
                                    <tr>
                                        <td colspan="2">
                                            &nbsp;<dx:ASPxHtmlEditor ID="hteDescripcion" runat="server" 
                                                Theme="Office2010Blue">
                                                <SettingsImageUpload>
                                                    <ValidationSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}">
                                                    </ValidationSettings>
                                                </SettingsImageUpload>
                                                <SettingsImageSelector>
                                                    <CommonSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" />
                                                </SettingsImageSelector>
                                                <SettingsDocumentSelector>
                                                    <CommonSettings AllowedFileExtensions=".rtf, .pdf, .doc, .docx, .odt, .txt, .xls, .xlsx, .ods, .ppt, .pptx, .odp" />
                                                </SettingsDocumentSelector>
                                            </dx:ASPxHtmlEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <dx:ASPxButton ID="ASPxButton11" runat="server" AutoPostBack="False" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                                Width="10px">
                                                <ClientSideEvents Click="function(s, e) {
	popupDescripcion.Hide();
	
}" />
                                                <Image Url="~/Images/ok.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                        
                                    </tr>
                                </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxPanel>
                </dx:PopupControlContentControl>
            </ContentCollection>
        </dx:ASPxPopupControl>



    <dx:ASPxPopupControl ID="PopupAgregarGrupo" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
        HeaderText="Agregar grupo" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="700px" 
        ClientInstanceName="PopupAgregarGrupo" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        AllowDragging="True" CloseAction="CloseButton" EnableHotTrack="False">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
 
 <table style="width:100%;">
 <tr>
 <td>
 
     <dx:ASPxGridView ID="grdPopGrupo" runat="server" Width="100%" 
         AutoGenerateColumns="False" ClientInstanceName="grdPopGrupo" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" KeyFieldName="id" 
         OnAfterPerformCallback="grdPopGrupo_AfterPerformCallback">
         <Columns>
             <dx:GridViewCommandColumn Caption="Marcar" ShowInCustomizationForm="True" 
                 ShowSelectCheckbox="True" VisibleIndex="3">
                 <ClearFilterButton Visible="True">
                 </ClearFilterButton>
             </dx:GridViewCommandColumn>
             <dx:GridViewDataTextColumn Caption="Nombre" FieldName="nombre" 
                 ShowInCustomizationForm="True" VisibleIndex="1">
             </dx:GridViewDataTextColumn>
             <dx:GridViewDataTextColumn Caption="Descripción" FieldName="descripcion" 
                 ShowInCustomizationForm="True" VisibleIndex="2">
             </dx:GridViewDataTextColumn>
             <dx:GridViewDataTextColumn Caption="Id" FieldName="id" 
                 ShowInCustomizationForm="True" VisibleIndex="0">
             </dx:GridViewDataTextColumn>
         </Columns>
         <SettingsBehavior AllowSort="False" />
         <Settings ShowFilterRow="True" />
         <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
             <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
             </LoadingPanelOnStatusBar>
             <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
             </LoadingPanel>
         </Images>
         <ImagesFilterControl>
             <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
             </LoadingPanel>
         </ImagesFilterControl>
         <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue">
             <Header ImageSpacing="5px" SortingImageSpacing="5px">
             </Header>
             <LoadingPanel ImageSpacing="5px">
             </LoadingPanel>
         </Styles>
         <StylesPager>
             <PageNumber ForeColor="#3E4846">
             </PageNumber>
             <Summary ForeColor="#1E395B">
             </Summary>
         </StylesPager>
         <StylesEditors ButtonEditCellSpacing="0">
             <ProgressBar Height="21px">
             </ProgressBar>
         </StylesEditors>
     </dx:ASPxGridView>
 
 </td>
 
 </tr>
     <tr>
         <td align="center">
             <dx:ASPxButton ID="btnPopAgregar" runat="server" Text="Agregar" 
                 AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                 CssPostfix="Office2010Blue" OnClick="btnPopAgregar_Click" 
                 SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                 <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
	PopupAgregarGrupo.Hide();
}" />
                 <Image Url="~/Images/add2.png">
                 </Image>
             </dx:ASPxButton>
         </td>
     </tr>
 </table>







            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>



    
    
  

<dx:ASPxPopupControl ID="PopupUsuarioAsosciados" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
        HeaderText="Usuarios asociados" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="700px" 
        ClientInstanceName="PopupUsuarioAsosciados" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
            ShowPageScrollbarWhenModal="True" EnableHotTrack="False">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
            PaddingTop="4px" />
<Paddings PaddingLeft="7px"></Paddings>
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl8" runat="server" SupportsDisabledAttribute="True">
 
 <table style="width:100%;">
 <tr>
 <td>


 
 

 
     <dx:ASPxGridView ID="grdUsuarioAsociados" runat="server" Width="100%" 
         AutoGenerateColumns="False" ClientInstanceName="grdUsuarioAsociados" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" KeyFieldName="ID_USUARIO" 
         OnAfterPerformCallback="grdPopGrupo_AfterPerformCallback">
         <Columns>
             <dx:GridViewDataTextColumn Caption="Usuario" FieldName="ID_USUARIO" 
                 ShowInCustomizationForm="True" VisibleIndex="2">
             </dx:GridViewDataTextColumn>
             <dx:GridViewDataTextColumn Caption="Estado" FieldName="ESTADO" 
                 ShowInCustomizationForm="True" VisibleIndex="3">
             </dx:GridViewDataTextColumn>
             <dx:GridViewDataTextColumn Caption="Apellidos" FieldName="DES_APELLIDOS" 
                 ShowInCustomizationForm="True" VisibleIndex="1">
             </dx:GridViewDataTextColumn>
             <dx:GridViewDataTextColumn Caption="Nombre" FieldName="DES_NOMBRE" 
                 ShowInCustomizationForm="True" VisibleIndex="0">
             </dx:GridViewDataTextColumn>
             <dx:GridViewDataTextColumn Caption="Email" FieldName="DES_EMAIL" 
                 ShowInCustomizationForm="True" VisibleIndex="4" Visible="False">
             </dx:GridViewDataTextColumn>
             <dx:GridViewDataTextColumn Caption="Tipo" FieldName="TIPO_USUARIO" 
                 ShowInCustomizationForm="True" VisibleIndex="5">
             </dx:GridViewDataTextColumn>
         </Columns>
         <Settings ShowFilterRow="True" />

<SettingsBehavior AllowSort="False" SortMode="DisplayText"></SettingsBehavior>

<Settings ShowFilterRow="True"></Settings>

         <SettingsLoadingPanel Mode="ShowOnStatusBar" Text="Loading..." />

         <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
             <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
             </LoadingPanelOnStatusBar>
             <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
             </LoadingPanel>
         </Images>
         <ImagesFilterControl>
             <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
             </LoadingPanel>
         </ImagesFilterControl>
         <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue">
             <Header ImageSpacing="5px" SortingImageSpacing="5px">
             </Header>
             <LoadingPanel ImageSpacing="5px">
             </LoadingPanel>
         </Styles>
         <StylesPager>
             <PageNumber ForeColor="#3E4846">
             </PageNumber>
             <Summary ForeColor="#1E395B">
             </Summary>
         </StylesPager>
         <StylesEditors ButtonEditCellSpacing="0">
             <ProgressBar Height="21px">
             </ProgressBar>
         </StylesEditors>
     </dx:ASPxGridView>


 </td>
 
 </tr>
     <tr>
         <td align="center">
             &nbsp;</td>
     </tr>
 </table>







            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>








 
   
    
 </ContentTemplate>
 
 </asp:UpdatePanel>

</asp:Content>
